package com.project.demo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.sql.Timestamp;


/**
 * 民宿信息：(HomestayInformation)表实体类
 *
 */
@TableName("`homestay_information`")
@Data
@EqualsAndHashCode(callSuper = false)
public class HomestayInformation implements Serializable {

    // HomestayInformation编号
    @TableId(value = "homestay_information_id", type = IdType.AUTO)
    private Integer homestay_information_id;

    // 商家用户
    @TableField(value = "`merchant_users`")
    private Integer merchant_users;
    // 民宿名称
    @TableField(value = "`name_of_homestay`")
    private String name_of_homestay;
    // 民宿类型
    @TableField(value = "`types_of_homestays`")
    private String types_of_homestays;
    // 房间面积
    @TableField(value = "`room_area`")
    private String room_area;
    // 停车场
    @TableField(value = "`parking`")
    private String parking;
    // 民宿押金
    @TableField(value = "`homestay_deposit`")
    private Double homestay_deposit;
    // 民宿好评
    @TableField(value = "`homestay_praise`")
    private Double homestay_praise;
    // 民宿电话
    @TableField(value = "`homestay_phone_number`")
    private String homestay_phone_number;
    // 民宿位置
    @TableField(value = "`location_of_homestay`")
    private String location_of_homestay;
    // 民宿日价
    @TableField(value = "`daily_price_of_homestay`")
    private Double daily_price_of_homestay;
    // 民宿照片
    @TableField(value = "`homestay_photos`")
    private String homestay_photos;
    // 民宿简介
    @TableField(value = "`introduction_to_homestay`")
    private String introduction_to_homestay;


    // 点赞数
    @TableField(value = "praise_len")
    private Integer praise_len;

    // 收藏数
    @TableField(value = "collect_len")
    private Integer collect_len;

    // 评论数
    @TableField(value = "comment_len")
    private Integer comment_len;

    // 审核状态
    @TableField(value = "examine_state")
    private String examine_state;

		// 预定限制次数
	@TableField(value = "homestay_orders_limit_times")
	private String homestay_orders_limit_times;

	// 更新时间
    @TableField(value = "update_time")
    private Timestamp update_time;

    // 创建时间
    @TableField(value = "create_time")
    private Timestamp create_time;

    @TableField(value = "is_cook")
    private String is_cook;

    @TableField(value = "pet")
    private String pet;

    @TableField(value = "on_sale")
    private Integer on_sale;
}
